import { h } from 'vue';
import { NAvatar } from 'naive-ui';
import { BasicColumn } from '@/components/Table';
export interface ListData {
  id: string;
  title: string;
  reception_time: string;
  sender: string;
  receiver: string;
  code: string;
}
export const code_columns: BasicColumn<ListData>[] = [
  // {
  //   title: 'Message_Id',
  //   key: 'id',
  // },
  {
    title: '邮件标题',
    key: 'title',
  },
  {
    title: '接收时间',
    key: 'reception_time',
    // width: 100,
  },
  {
    title: '发送人',
    key: 'sender',
  },
  {
    title: '接收人',
    key: 'receiver',
  },
  {
    title: '验证码',
    key: 'code',
  },
];

export const card_columns: BasicColumn<ListData>[] = [
  // {
  //   title: 'Message_Id',
  //   key: 'id',
  // },
  {
    title: '邮件标题',
    key: 'title',
  },
  {
    title: '接收时间',
    key: 'reception_time',
    // width: 100,
  },
  {
    title: '发送人',
    key: 'sender',
  },
  {
    title: '接收人',
    key: 'receiver',
  },
  {
    title: '礼品卡号',
    key: 'card_number',
  },

  {
    title: '礼品码',
    key: 'card_code',
  },
];

export const order_columns: BasicColumn<ListData>[] = [
  // {
  //   title: 'Message_Id',
  //   key: 'id',
  // },
  {
    title: '邮件标题',
    key: 'title',
  },
  {
    title: '接收时间',
    key: 'reception_time',
    // width: 100,
  },
  {
    title: '发送人',
    key: 'sender',
  },
  {
    title: '接收人',
    key: 'receiver',
  },
  {
    title: '订单号',
    key: 'order_number',
  },
  {
    title: '下单时间',
    key: 'order_date',
  },
  {
    title: '下单金额',
    key: 'order_total',
  },
  {
    title: '订单状态',
    key: 'order_status',
  },
];

export const track_columns: BasicColumn<ListData>[] = [
  {
    title: '发货时间',
    key: 'order_date',
  },
  {
    title: '订单编号',
    key: 'order_number',
  },
  {
    title: '收货地址',
    key: 'order_address',
    // width: 100,
  },
  {
    title: '预估到货时间',
    key: 'arrival_time',
  },
  {
    title: '服务商',
    key: 'order_service',
  },
  {
    title: '物流单号',
    key: 'order_tracking_number',
  },
];
